import { pubRequire } from '@utils/public'
const baseUrl = '/notices'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire(
    'get',
    `/notices/audit/published`,
    params,
    callBack,
    errBack
  )
}
// 获取用户人群
export function getTouchPeopleAPI(id, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/${id}/audit/published/crowds`,
    '',
    callBack,
    errBack
  )
}
// 发布审核编辑
export function passEditAPI(noticeId, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${noticeId}/audit/published`,
    params,
    callBack,
    errBack
  )
}
// 发布审核通过
export function passAuditAPI(noticeId, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${noticeId}/audit/published/pass`,
    params,
    callBack,
    errBack
  )
}
